﻿using System.Runtime.InteropServices;
using System.Security.Authentication.ExtendedProtection;
using System;
using Microsoft.Extensions.DependencyInjection;

namespace ByteArray
{
    class Program
    {
        static void Main(string[] args)
        {
            var serviceProvider = new ServiceCollection()
            .AddSingleton<SensitiveResearchOption>()
            .AddSingleton<Processor>()
            .AddSingleton<Detector>()
           .BuildServiceProvider();

            var detector = serviceProvider.GetService<Detector>();
            detector.Start();
        }
    }
}